#include "item_shop.h"
#include "ui_item_shop.h"
#include <QDebug>
Item_Shop::Item_Shop(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Item_Shop)
{
    ui->setupUi(this);
    ui->label->setStyleSheet("border-image:url(:/Shop/Images/Shop/lable_back.png)");
    ui->label_2->setStyleSheet("border-image:url(:/Shop/Images/Shop/lable_back.png)");
    ui->label_3->setStyleSheet("border-image:url(:/Shop/Images/Shop/lable_back.png)");
    ui->label_4->setStyleSheet("border-image:url(:/Shop/Images/Shop/lable_back.png)");
    ui->pushButton->setStyleSheet("QPushButton{border-image:url(:/Shop/Images/Shop/button_back.png);}QPushButton:hover{border-image:url(:/Shop/Images/Shop/button_back_h.png);}QPushButton:pressed{border-image:url(:/Shop/Images/Shop/button_back_p.png);}");
    ui->pushButton_2->setStyleSheet("QPushButton{border-image:url(:/Shop/Images/Shop/button_back.png);}QPushButton:hover{border-image:url(:/Shop/Images/Shop/button_back_h.png);}QPushButton:pressed{border-image:url(:/Shop/Images/Shop/button_back_p.png);}");
    ui->pushButton_3->setStyleSheet("QPushButton{border-image:url(:/Shop/Images/Shop/button_back.png);}QPushButton:hover{border-image:url(:/Shop/Images/Shop/button_back_h.png);}QPushButton:pressed{border-image:url(:/Shop/Images/Shop/button_back_p.png);}");
    ui->pushButton_4->setStyleSheet("QPushButton{border-image:url(:/Shop/Images/Shop/button_back.png);}QPushButton:hover{border-image:url(:/Shop/Images/Shop/button_back_h.png);}QPushButton:pressed{border-image:url(:/Shop/Images/Shop/button_back_p.png);}");
}

Item_Shop::~Item_Shop()
{
    delete ui;
}

void Item_Shop::setstylesheetmy(QString setly1, QString setly2, QString setly3, QString setly4)
{
    ui->label->setStyleSheet(setly1);
    ui->label_2->setStyleSheet(setly2);
    ui->label_3->setStyleSheet(setly3);
    ui->label_4->setStyleSheet(setly4);

}

void Item_Shop::on_pushButton_clicked()
{
    emit pushbuttom_signal_1();
}

void Item_Shop::on_pushButton_2_clicked()
{
    emit pushbuttom_signal_2();
}

void Item_Shop::on_pushButton_3_clicked()
{
    emit pushbuttom_signal_3();
}

void Item_Shop::on_pushButton_4_clicked()
{
    emit pushbuttom_signal_4();
}
